ButtonEvent

An event that may be produced by a gamepad button or axis.

The corresponding input has a button behavior, i.e. it can be either pressed or released, and an event is sent each time that state changes, along with the current state.

Axes usually send a press event when they reach the start or end of their course, and send a release event when they quit that position.

Entries

Link copied to clipboard

Event sent when front top button is pressed or released.

Link copied to clipboard

Event sent when front bottom button is pressed or released.

Link copied to clipboard

Event sent when rear left button is pressed or released.

Link copied to clipboard

Event sent when the rear right button is pressed or released.

Link copied to clipboard

Event sent when the horizontal axis on left stick reaches or quits the left start of its course.

Link copied to clipboard

Event sent when the horizontal axis on left stick reaches or quits the right stop of its course.

Link copied to clipboard

Event sent when the vertical axis on left stick reaches or quits the top stop of its course.

Link copied to clipboard

Event sent when the vertical axis on left stick reaches or quits the bottom start of its course.

Link copied to clipboard

Event sent when the horizontal axis on right stick reaches or quits the left start of its course.

Link copied to clipboard

Event sent when the horizontal axis on right stick reaches or quits the right stop of its course.

Link copied to clipboard

Event sent when the vertical axis on right stick reaches or quits the top stop of its course.

Link copied to clipboard

Event sent when the vertical axis on right stick reaches or quits the bottom start of its course.

Link copied to clipboard

Event sent when the left slider reaches or quits the left start of its course.

Link copied to clipboard

Event sent when the left slider reaches or quits the right stop of its course.

Link copied to clipboard

Event sent when the right slider reaches or quits the left start of its course.

Link copied to clipboard

Event sent when the right slider reaches or quits the right stop of its course.

Types

Link copied to clipboard
interface Listener
Receives button events sent from the remote control when a corresponding input is grabbed.
Link copied to clipboard
enum State
State of the corresponding button.

Functions

Link copied to clipboard
open fun valueOf(name: String): ButtonEvent

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard
open fun values(): Array<ButtonEvent>

Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.